package com.ophiux.system.model.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserRegisterDto {

	@ApiModelProperty(value = "微信小程序openid")
	@NotBlank(message = "未获取到微信小程序openid")
	private String miniOpenid;

	@ApiModelProperty(value = "缺省就诊医院id")
	private Integer defaultTeamId;

	/**
	 * unionId
	 */
	@ApiModelProperty(value = "unionId")
	private String unionId;

	public UserRegisterDto(String unionId) {
		this.unionId = unionId;
	}
}
